package org.com.thang.dept;

import org.com.system.util.dao.HibernateDao;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Component("deptServer")
public class DeptService extends HibernateDao<Dept> {

	@Transactional(propagation=Propagation.REQUIRED,rollbackFor={RuntimeException.class, Exception.class},readOnly=false)
	public void testTwoMethod(Dept entity){
		save(entity);
		delete(entity);
	}
	
}
